home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 9 / FM Towns Free Software Collection 9.iso / t_os / shell / igo / gosource / ex_wgb.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-16  |  631 b   |  36 lines

  1. /* 
  2.     TOWNS囲碁棋譜記録プログラム
  3.                                           1991/12/11  久保田俊也
  4.  
  5.     93/01/02  GNUC からHIGHC 移行のため作成
  6.  
  7.  
  8. */
  9. #include <EGB.H>
  10.  
  11. extern char para[64] ;
  12.  
  13. int WGB_box( char *work, int x1, int y1, int x2, int y2 )
  14. {
  15.  
  16.     WORD(para + 0) = x1;
  17.     WORD(para + 2) = y1;
  18.     WORD(para + 4) = x2;
  19.     WORD(para + 6) = y2;
  20.     return ( WGB_rectangle( work, para ));
  21.  
  22. }
  23.  
  24. int WGB_singleLine( char *work, int x1, int y1, int x2, int y2 )
  25. {
  26.  
  27.     WORD(para + 0) = 2;
  28.     WORD(para + 2) = x1;
  29.     WORD(para + 4) = y1;
  30.     WORD(para + 6) = x2;
  31.     WORD(para + 8) = y2;
  32.     return ( WGB_connect( work, para ));
  33.  
  34. }
  35.  
  36.